package algorithm.ldk.LinearSearch;

/**
 * @作者：ldk
 * @email 2505496685@qq.com
 * @描述：默认描述
 * @创建时间：8:24 2020-12-30
 * @修改时间：8:24 2020-12-30
 * @修改描述：默认描述
 */

/**
 * 学生类
 */
public class Student {

    private String name;

    public Student(String name){
        this.name = name;
    }


    @Override
    public boolean equals(Object student) {

        if(this == student){
            return true;
        }

        if(student == null){
            return false;
        }

        if(this.getClass() != student.getClass()){
            return false;
        }

        Student another = (Student) student;
        return this.name.toLowerCase().equals(another.name.toLowerCase());

    }
}
